<template>
  <div class="login clearfix">
    <div class="login-wrap">
      <el-row type="flex" justify="center">
        <el-form ref="loginForm" :model="user" status-icon label-width="80px">
          <h3>注册</h3>
          <hr>
          <el-form-item prop="username" label="用户名">
            <el-input v-model="user.username" placeholder="请输入用户名"></el-input>
          </el-form-item>
          <el-form-item prop="email" label="邮箱">
            <el-input v-model="user.email" placeholder="请输入邮箱"></el-input>
          </el-form-item>
          <el-form-item prop="password" label="设置密码">
            <el-input v-model="user.password" show-password placeholder="请输入密码"></el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" icon @click="doRegister()">注册账号</el-button>
          </el-form-item>
        </el-form>
      </el-row>
    </div>
  </div>
</template>

<script>
   import axios from "axios";
   export default {
       name: "login",
       data(){
           return{
               user:{
                   username: '',
                   email: '',
                   password: ''
               },
           };
       },
       created() {
       },
       methods: {
           doRegister(){

           }
       }
   }
</script>

<style>


  .login {
    width: 100%;
    height: 740px;
    /*background: url("../assets/images/bg1.png") no-repeat;*/
    background-size: cover;
    overflow: hidden;
    background: url("../assets/imager/login.png");
  }
  .login-wrap {
    /*background: url("../assets/images/login_bg.png") no-repeat;*/
    background-size: cover;
    width: 500px;
    height: 400px;
    margin: 215px auto;
    overflow: hidden;
    padding-top: 10px;
    line-height: 20px;
    background: url("../assets/imager/login_bg.png") no-repeat;
  }

  h3 {
    color: #0babeab8;
    font-size: 24px;
  }
  hr {
    background-color: #444;
    margin: 20px auto;
  }

  .el-button {
    width: 80%;
    margin-left: -50px;
  }
</style>
